//
//  MessageVC.m
//  PersonalOC
//
//  Created by 韩琴 on 2018/8/17.
//  Copyright © 2018年 韩琴. All rights reserved.
//

#import "MessageVC.h"
#import "MessageLisitVC.h"

@interface MessageVC ()
@end

@implementation MessageVC

- (void)viewDidLoad {
    [super viewDidLoad];

}
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.titleSizeNormal = 15;
        self.titleSizeSelected = 15;
        self.menuViewStyle = WMMenuViewStyleLine;
        self.menuItemWidth = [UIScreen mainScreen].bounds.size.width / 3;
        self.progressColor = UIColor.redColor;
        self.titleColorNormal = UIColor.darkGrayColor;
        self.titleColorSelected = UIColor.redColor;
        self.progressWidth = 40;
        
    }
    return self;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (NSInteger)numbersOfChildControllersInPageController:(WMPageController *)pageController {
    return 3;
}

- (UIViewController *)pageController:(WMPageController *)pageController viewControllerAtIndex:(NSInteger)index {
    MessageLisitVC *vc = [[MessageLisitVC alloc] init];
    vc.tag = index;
    return vc;
}
- (NSString *)pageController:(WMPageController *)pageController titleAtIndex:(NSInteger)index{
    
    NSArray *titleArr = @[@"全部",@"已读",@"未读"];
    return titleArr[index];
    
}
- (CGRect)pageController:(WMPageController *)pageController preferredFrameForMenuView:(WMMenuView *)menuView
{
    
    return CGRectMake(0,0, LY_M_SCREEN_W,40);
}
- (CGRect)pageController:(WMPageController *)pageController preferredFrameForContentView:(WMScrollView *)contentView
{
    
    
    CGFloat top = LY_navgationBarAndStatusBar_Height;
    return CGRectMake(0, 40, LY_M_SCREEN_W, LY_M_SCREEN_H-top-40-(LY_Height_TabBar));
}

@end
